package tienda9;

public class ZaraTiendaFacadeProxy implements tienda9.ZaraTiendaFacade {
  private String _endpoint = null;
  private tienda9.ZaraTiendaFacade zaraTiendaFacade = null;
  
  public ZaraTiendaFacadeProxy() {
    _initZaraTiendaFacadeProxy();
  }
  
  public ZaraTiendaFacadeProxy(String endpoint) {
    _endpoint = endpoint;
    _initZaraTiendaFacadeProxy();
  }
  
  private void _initZaraTiendaFacadeProxy() {
    try {
      zaraTiendaFacade = (new tienda9.ZaraTiendaFacadeServiceLocator()).getZaraTiendaFacadePort();
      if (zaraTiendaFacade != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)zaraTiendaFacade)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)zaraTiendaFacade)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (zaraTiendaFacade != null)
      ((javax.xml.rpc.Stub)zaraTiendaFacade)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public tienda9.ZaraTiendaFacade getZaraTiendaFacade() {
    if (zaraTiendaFacade == null)
      _initZaraTiendaFacadeProxy();
    return zaraTiendaFacade;
  }
  
  public java.lang.String procesarEnvT(java.lang.String arg0) throws java.rmi.RemoteException{
    if (zaraTiendaFacade == null)
      _initZaraTiendaFacadeProxy();
    return zaraTiendaFacade.procesarEnvT(arg0);
  }
  
  public java.lang.String procesarPALC(java.lang.String arg0) throws java.rmi.RemoteException{
    if (zaraTiendaFacade == null)
      _initZaraTiendaFacadeProxy();
    return zaraTiendaFacade.procesarPALC(arg0);
  }
  
  
}